@echo off
echo Starting project publish...

REM Clean old publish files
if exist "publish" rmdir /s /q "publish"

REM Publish project
dotnet publish hao-Chat.Api.csproj -c Release -o publish

if %errorlevel% equ 0 (
    echo [SUCCESS] Project published to publish folder
) else (
    echo [ERROR] Project publish failed
)

pause